import React from 'react'
import { Outlet } from 'react-router-dom'
import './Admin.scss'
import Appaside from '../../components/Appaside/Appaside'
import Appheader from '../../components/APPheader/Appheader'
import { Layout, theme } from 'antd'
import Auth from '../../components/Auth/Auth'
const { Content } = Layout
export default function Admin() {
    return (
        <div className='admin'>
            <Auth>
                <Layout>
                    <Appaside />
                    <Layout className='site-layout'>
                        <Appheader />
                        <Content >
                            <Outlet />
                        </Content >
                    </Layout>
                </Layout>
            </Auth>

        </div>
    )
}
